package com.runfast.waimai.service.impl;

import com.runfast.common.service.BaseService;
import com.runfast.waimai.dao.mapper.RunfastWithdrawMapper;
import com.runfast.waimai.dao.model.RunfastWithdraw;
import com.runfast.waimai.dao.model.RunfastWithdrawExample;
import com.runfast.waimai.service.RunfastWithdrawService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Date;
import java.util.List;

@Service
public class RunfastWithdrawServiceImpl extends BaseService<RunfastWithdraw, Integer, RunfastWithdrawExample> implements RunfastWithdrawService {
    @Resource
    RunfastWithdrawMapper dao;
    @Override
    public List<RunfastWithdraw> findMoneyhome(List agentId,String name, Integer state, Integer status, String usermobile, Date createtime1, Date createtime2, Integer page, Integer pagesize) {
        return dao.findMoneyhome(agentId,name, state, status, usermobile,createtime1,createtime2,page,pagesize);
    }

    @Override
    public List<RunfastWithdraw> findBusinessMoneyhome(String name,List agentId, Date createtime1, Date createtime2,Integer page,Integer pagesize) {
        return dao.findBusinessMoneyhome(name,agentId, createtime1,createtime2,page,pagesize);
    }

    @Override
    public RunfastWithdraw findMobileAndTime(String usermobile, Date createtime) {
        return dao.findMobileAndTime(usermobile, createtime);
    }

    @Override
    public RunfastWithdraw findByid(Integer id) {
        return dao.findByid(id);
    }

    @Override
    public Integer findMoneyhomecount(List agentId,String name, Integer state, Integer status, String usermobile, Date createtime1, Date createtime2,Integer page,Integer pagesize)  {
        return dao.findMoneyhomecount(agentId,name, state, status, usermobile,createtime1,createtime2,page,pagesize);
    }

    @Override
    public Integer findBusinessMoneyhomecount(String name,List agentId, Date createtime1, Date createtime2, Integer page, Integer pagesize) {
        return dao.findBusinessMoneyhomecount(name,agentId, createtime1,createtime2,page,pagesize);
    }
}